Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Dockerfile.rhel8 to fix the postgresql upgrade issue from v12 to v13. #451

Closed
wants to merge 1 commit into from

Conversation

dinaharan
Copy link

I was trying to test postgresql upgrade to version 13 from version 12 using RHEL8 based image but it's not working. I see the following env is missing in RHEL8 based postgresql 13 image

POSTGRESQL_PREV_VERSION=12

Here is the link to problematic Dockerfile.

https://github.com/sclorg/postgresql-container/blob/generated/13/Dockerfile.rhel8

The same works fine with RHEL7 and other images.

I was trying to test postgresql upgrade to version 13 from version 12 using RHEL8 based image but it's not working.  I see the following env is missing in RHEL8 based postgresql 13 image

POSTGRESQL_PREV_VERSION=12

Here is the link to problematic Dockerfile.

https://github.com/sclorg/postgresql-container/blob/generated/13/Dockerfile.rhel8

The same works fine with RHEL7 and other images.
@phracek
Copy link
Member

phracek commented Jul 14, 2022

[test-all]

Copy link
Member

@phracek phracek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR!. Please follow the requested changes.

@@ -11,6 +11,7 @@ FROM ubi8/s2i-core
# PostgreSQL administrative account

ENV POSTGRESQL_VERSION=13 \
POSTGRESQL_PREV_VERSION=12 \
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The valid code for fixing this is here: https://github.com/sclorg/postgresql-container/blob/master/src/Dockerfile#L14

Please do the following steps.

  1. fix file src/Dockerfile
  2. commit the change.
  3. The sources are generated automatically.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated this file and created the new PR #456. Thanks for pointing out.

@phracek
Copy link
Member

phracek commented Jul 20, 2022

Closing in favor of #456

@phracek phracek closed this Jul 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants